/**
 * AgentOrderInfoMapperExt
 * Copyright © 2015 - 2017
 * All rights reserved.
 * -----------------------------------
 * 2018-04-16  Created
 */
package com.lzy.product.dao;

import com.lzy.framework.core.orm.db.Pager;
import com.lzy.product.dtos.agent.AgentOrderInfoDto;
import com.lzy.product.dtos.agent.AgentOrderSalesRecordDto;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;

@Resource
public interface AgentOrderInfoMapperExt extends AgentOrderInfoMapper {

    List<AgentOrderInfoDto> query(@Param("param") AgentOrderInfoDto agentOrderInfoDto);

    BigDecimal queryTotalPriceByUserId(@Param("userId") Long userId);

    List<AgentOrderSalesRecordDto> statisticalSalesRecord(@Param("param") AgentOrderInfoDto agentOrderInfoDto);

    List<AgentOrderSalesRecordDto> statisticalSalesRecordByCondition(@Param("idList") String idList, @Param("type") Integer type, @Param("time") String time);

    AgentOrderInfoDto queryContractByOrderId(@Param("orderId") Long orderId);
}